<select name="pai_id[]" <?php echo $estilo; ?>>
    
    <option value=""><?=$t_pais;?></option>

    <?php
	
    $sql_pai_id = "SELECT * FROM pais ORDER BY pai_id";
    $res_pai_id = sql($sql_pai_id);

    while($linha_pai_id = mysql_fetch_array($res_pai_id)){
    ?>

    <option value="<?=$linha_pai_id['pai_id'];?>" <?php if (count($pai_id)>0) { if(in_array($linha_pai_id['pai_id'],$pai_id)) { echo "selected"; } } ?>><?=$linha_pai_id['pai_nome'];?></option>

    <?php } ?>

</select>